package cn.bonoon.policy;

import cn.bonoon.kernel.security.LogonUserPrivilegeMapped;
import cn.bonoon.kernel.security.LogonUser;

/**
 * 由子类来定义用户访问权限的存储策略
 * 
 * @author jackson
 *
 */
public interface AccountPrivilegePolicy {

	/** 是否接受这种类型的权限 */
	boolean accept(Class<?> acceptClass);

	void doPolicy(LogonUser user, LogonUserPrivilegeMapped privilegeMapped);

}
